import request from '@/utils/request'

// 查看维修记录
export function listRepair(query) {
  return request({
    url: '/admin/repair/repair/',
    method: 'get',
    params: query
  })
}

// 修改维修记录
export function updateRepair(query) {
    return request({
      url: '/admin/repair/repair/',
      method: 'put',
      data:query
    })
  }
  
  
  // 删除维修记录
  export function delRepair(query) {
    return request({
      url: '/admin/repair/repair/',
      method: 'delete',
      params:query

    })
  }
  
  //新增维修记录
  export function addRepair(data) {
      return request({
        url: `/admin/repair/repair/`,
        method: 'post',
        data
      })
  }
